package com.itheima.Service;

import com.itheima.bean.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    /**
     * 添加购物车
     * @param shoppingCart
     * @return
     */
    ShoppingCart add(ShoppingCart shoppingCart);

    /**
     * 格局用户的ID来查询用户的购物车数据
     * @return
     */
    List<ShoppingCart> list();

    /**
     * 根据用户的ID来删除该用户的购物车数据
     *
     * @return
     */
    int clean();

    /**
     * 删减购物车
     * @param shoppingCart
     * @return
     */
    ShoppingCart delete(ShoppingCart shoppingCart);
}
